<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php echo $this->Html->charset(); ?>
        <title>
            <?php echo __('Loyalty'); ?>
            <?php echo $title_for_layout; ?>
        </title>
        <?php
            echo $this->Html->meta('icon');
            echo $this->Html->css('styles');
            echo $this->Html->css('jquery/jquery.ui.all');
            echo $this->Html->css('admin/screen');
        ?>
        <!--[if IE]>
        <?php
            echo $this->Html->css('admin/pro_dropline_ie');
        ?>
        <![endif]-->
        <?php
            echo $this->Html->script('jquery-1.7.2');  
        ?>
        <?php   
            
            echo $this->Html->script('jquery-ui/ui/jquery-ui-1.8.20.custom');
            echo $this->Html->script('jquery-ui/external/jquery.bgiframe-2.1.2');
            echo $this->Html->script('jquery-ui/ui/jquery.ui.core');
            echo $this->Html->script('jquery-ui/ui/jquery.ui.widget');
            echo $this->Html->script('jquery-ui/ui/jquery.ui.datepicker');
            echo $this->Html->script('jquery-ui/ui/jquery.ui.mouse');
            echo $this->Html->script('jquery-ui/ui/jquery.ui.button');
            echo $this->Html->script('jquery-ui/ui/jquery.ui.draggable');
            echo $this->Html->script('jquery-ui/ui/jquery.ui.droppable');
            echo $this->Html->script('jquery-ui/ui/jquery.ui.position');
            echo $this->Html->script('jquery-ui/ui/jquery.ui.resizable');
            echo $this->Html->script('jquery-ui/ui/jquery.ui.dialog');
            echo $this->Html->script('jquery-ui/ui/jquery.ui.tabs');
            echo $this->Html->script('jquery-ui/ui/jquery.effects.core');
            echo $this->Html->script('jquery.dataTables');
            echo $this->Html->script('chosen.jquery');
            echo $this->Html->css('chosen');
            echo $this->Html->script('jquery.maskedinput-1.3');
            echo $this->Html->css('admin/calendrical');
            echo $this->Html->script('admin/jquery.calendrical');
            echo $this->Html->script('admin/jquery.filestyle'); 
            echo $this->Html->script('admin/jquery.tooltip'); 
            //echo $this->Html->script('admin/jquery.placeholder'); 
            echo $this->Html->script("tiny_mce/tiny_mce");
            echo $this->Html->script('autocompleted/jquery.autocomplete.js');
            echo $this->Html->css('/js/autocompleted/styles.css'); 
        ?>
        <script type="text/javascript">
            jQuery(document).ready(function() {
                jQuery(".chosen").chosen();
                jQuery('.info-tooltip ').tooltip({
                        track: true,
                        delay: 0,
                        fixPNG: true, 
                        showURL: false,
                        showBody: " - ",
                        top: -35,
                        left: 5
                });
                $('form.form').submit(function(){
                    $("form.form input[type=submit]").addClass("hidden");
                    $("form.form input[type=submit]").before('<input class="submit-button" id="temp-submit" type="button" value="Saving ..."></input>');
                    //$('form.form').submit();
                    return true;
                });
            }); 
            function check_in_array(value,array){
                var ret = 0;
                for(i=0;i<=array.length;i++){
                    if(array[i]==value){
                        ret = 1;
                        break;
                    }
                }
                return ret;
            }
            function get_city(type,country_id,city_id){
                $('#city-update a.chzn-single span').html('loading .... ');
                $.get('<?php echo $this->Html->url(array('controller'=>'customers','action'=>'get_city_list','admin'=>false)) ?>/'+type+'/'+country_id+'/'+city_id, function(data){
                    $('#city-update').html(data);
                    $('.chosen').chosen();
                });
            }
        </script>
        <?php    
            echo $this->Html->script('admin/jquery.pngFix.pack'); 
        ?>
        <script type="text/javascript">
        $(document).ready(function(){
            $(document).pngFix( );
        }); 
        </script>
<script>
var cfg = '<?php echo $js_absolute_path; ?>';
</script>
    </head>
    <body id="backend">
        <div id="page-top-outer">    
            <div id="page-top">
                <div id="logo">
                    <a href="">
                    <?php echo $this->Html->image('virginlogo.jpg',array('width'=>"70px")); ?>
                    </a>
                </div>
                <!--<div id="top-search">
                    <?php echo $this->element('searchForm/form'); ?>
                </div>-->
                <div class="clear"></div>
            </div>
        </div>
        <div class="clear">&nbsp;</div>
        <div class="nav-outer-repeat"> 
            <div class="nav-outer"> 
               <?php echo $this->element('top_nav'); ?>
            </div>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
        <div id="content-outer">
            <?php echo $content_for_layout; ?>
            <div class="clear">&nbsp;</div>
        </div>
        <div class="clear">&nbsp;</div>
        <div id="footer">
            <div id="footer-left">
                Copyright &copy;2012 EMS .All Rights Reserved 
            </div>
            <div class="clear">&nbsp;</div>
            <?php //echo $this->element('sql_dump'); ?>
        </div> 
    </body>
</html>